if (!String.prototype.includes) {
    String.prototype.includes = function(search, start) {
        'use strict';
        if (typeof start !== 'number') {
            start = 0;
        }

        if (start + search.length > this.length) {
            return false;
        } else {
            return this.indexOf(search, start) !== -1;
        }
    };
}

String.prototype.replaceAll = function(str1,str2){
    var str = this;
    var array = this.split(str1).length - 1
    for(let i=0;i<=array;i++){
        str = str.replace(str1,str2)
    }
    return str
}